Change root path of logs and photos

Brightcells 8 年之前
父节点
当前提交
143efdcf75
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      main.py
  2. 2 2
      minipai2.conf
  3. 1 1
      startup.sh
  4. 2 2
      utils/boxinfo.py

+ 1 - 1
main.py

@@ -24,7 +24,7 @@ define('port', default=8001, help='run on the given port', type=int)
24 24
 options.parse_command_line()
25 25
 
26 26
 
27
-ROOT_PATH = '/home/work/minipai2'
27
+ROOT_PATH = '/minipai2'
28 28
 
29 29
 
30 30
 conn = sqlite3.connect('minipai2.db')

+ 2 - 2
minipai2.conf

@@ -1,2 +1,2 @@
1
-version=0.0.1
2
-deldb=false
1
+version=0.0.3
2
+deldb=true

+ 1 - 1
startup.sh

@@ -22,7 +22,7 @@ if [ "$oldversion" != "$version" ] && [ "$deldb" = "true" ]; then
22 22
 fi
23 23
 
24 24
 # Start Server
25
-nohup python main.py --port=8002 &>/tmp/minipai2.log &
25
+nohup python main.py --port=8002 &>/ramfs/minipai2.log &
26 26
 
27 27
 # Change Current Directory
28 28
 cd -

+ 2 - 2
utils/boxinfo.py

@@ -13,8 +13,8 @@ STATUS_CODE_MSG = {
13 13
 
14 14
 DETECT_LOGS = (
15 15
     # ('LOG FILE PATH', 'VALID STATUS CODE')
16
-    ('/tmp/getpic.log', '100'),
17
-    ('/tmp/main.log', '200')
16
+    ('/ramfs/getpic.log', '100'),
17
+    ('/ramfs/main.log', '200')
18 18
 )
19 19
 
20 20